<!---总览页面真实内容-->
<template>
  <div class="ele-body">
    <a-tabs default-active-key="1" @change="callbackActivityTab">
      <a-tab-pane key="1" tab="实时数据">
        <device-spray-mainboard-monitor :data="data" />
      </a-tab-pane>
      <a-tab-pane key="2" tab="从板(喷淋)列表">
        <device-spraymainboard-slave :data="data" />
      </a-tab-pane>
      <a-tab-pane key="3" tab="从板(喷淋)数据">
        <device-spraymainboard-slave-data :data="data" />
      </a-tab-pane>
      <a-tab-pane key="4" tab="传感器历史数据">
        <device-spraymainboard-salve-sensor-data :data="data" />
      </a-tab-pane>
      <a-tab-pane key="5" tab="异常数据">
        <device-spraymainboard-slave-errdata :data="data" />
      </a-tab-pane>
      <a-tab-pane key="6" tab="设置">
        <device-spraymainboard-cmd-config :data="data" />
      </a-tab-pane>
      <a-tab-pane key="7" tab="推送数据">
        <device-spraymainboard-cmd :data="data" />
      </a-tab-pane>
    </a-tabs>
  </div>
</template>

<script>
import DeviceSprayMainboardMonitor from './mainboard-monitor.vue';
import DeviceSpraymainboardSlave from './mainboard-slave.vue';
import DeviceSpraymainboardSlaveData from './mainboard-slave-data.vue';
import DeviceSpraymainboardSalveSensorData from './mainboard-salve-sensor-data.vue';
import DeviceSpraymainboardSlaveErrdata from './mainboard-slave-errdata.vue';
import DeviceSpraymainboardCmd from './mainboard-cmd.vue'
import DeviceSpraymainboardCmdConfig from './mainboard-cmd-config.vue'
export default {
  name: 'DeviceMainboard',
  components: {
    DeviceSpraymainboardSalveSensorData,
    DeviceSprayMainboardMonitor,
    DeviceSpraymainboardSlave,
    DeviceSpraymainboardSlaveData,
    DeviceSpraymainboardSlaveErrdata,
    DeviceSpraymainboardCmd,
    DeviceSpraymainboardCmdConfig
  },
  props: {
    data: Object
  },
  data() {
    return {


    };
  },
  methods: {
    callbackActivityTab (index) {
      console.log(index)
    },
  }
};
</script>
